return false for null value and added test cases