refactor to test if false will return instead of true