Php Check If Array Is Not Empty In Js How To Take