IsErr functions should never panic