removed bang operator
created a method for checking if the factorial exists