Better PHP validation.
Fix PHP validations.