Update helper.php

Added function `getOrientation()` (see #3568)