Replace empty? || nil? with blank?.
Merge pull request #7877 from cirosantilli/empty-nil-blank

Replace empty? || nil? with blank?.