Refactor filled? function to make it accept either attribute name or
name/value pair or nothing. The function it returns behaves like
empty-node?, which is now a private function.