isEmpty is a const
also killed some empty lines