Basically if we have any root other than integers then it should return False