check if array key is defined