Should use the same check for both lines (!empty())