yet another method for fix for when php parameter does not exist