Maybe isPortrait ? That would let you remove the |// Orientation === portrait| comment.