method

none?

none?(*args)
public

Returns true if there are no records.

When a pattern argument is given, this method checks whether elements in the Enumerable match the pattern via the case-equality operator (===).

posts.none?(Comment) # => true or false