Changed type of checking if array key exist.