wrong key-check. use array_key_exists

Change-Id: I7f5c5d2c3116fd5e9e40aad79fdd9d0e5bce8e0d