Here returning null makes sense -- it's natural to return null when a match is not found.