Properly check for php defs