Update PrismicHelper.php

minor refactoring