refactored #all? method