[REF] Remove duplicate checks for an array key existing