The closer match is probably #present?
# returns true if not nil and not blank
params['foo'].present?
There are also a few other methods
# returns true if nil
params['foo'].nil?
# returns true if nil or empty
params['foo'].blank?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…