perhaps change this to: `... if collapse.nil?`