Are there any problems with the way I did these checks?