I found this code below in a script, I am trying to figure out if it is actually supposed to do more then I am seeing, As far as I can tell it results in an array of:
$maxSize[0] with $new_width
$maxSize[1] with $source_width
$maxSize = array($new_width ? $new_width : $source_width, $new_height ? $new_height : $source_height);