You can just do: `options[:sort_by] ||= 'start_time'`