Almost everyone who new to Ruby on Rails confused by those three methods. At a glance they almost seems same, but let’s understand and know the difference between them.

Are They Belongs to Ruby or Rails?

.empty? is Ruby method
.nil? is Ruby method…

Read more at the source