Cleaner to explicitly return null in the else case. Otherwise it looks like you could be making a logic error.