Php If Variable Is Not Null Javascript