Php If Array Has Javascript Tutorial Point