Php If Variable Not Defined Javascript Array