[php] How to check if an array value exists?