Revert "fix for when php parameter does not exist"

This reverts commit 8ebaa0aec5a9c20b12c0b6d572bfd3b0386a8c48.
try another method for fix for when php parameter does not exist