`select{|v| !v.nil?}` can be replaced by `compact`