Improved conditional for iterator

Default value for params is {} which isn't falsy. 
So this should save :each from firing up every time with an empty hash.