Check for TypeError