Added some boolean function to make the if statement nice looking