checking for the existence of the character