Add check for Error prototype