Used line.empty() instead comparing against an empty string literal.