Update helper.php

prevent older php parsers from crashing