How to validate value is Boolean in Php?