try with params.present?