you can write it positive way - `primary_slots = slots.select { |slot| slot[:primary_possible] }` I remove fetch as nil is evaluated as false