Fixed checking existence of key in array.