check php exists before continuing