$longways = $widthIsLonger ? $width || 1 : $height || 1;