small fix for different PHP versions