nil does not have a .empty? method