The block of code above should be kept in the ifs to avoid doing to much work when we need to return false.