This is really the only thing you need in this class. All the other checks are redundant.