refactored code: return false