check if params is present with vanilla ruby

try() is a no go since its provided by active support from rails 2.3