Php Find If Key Exists In Array Function