Fix isNonPHPRequest()