Php Check If Value Exists In Array And Return Key