bugfix for empty() method; walker() method provided to be used with
lambdas