update error name and use .empty?