Returns true if isErr is true and if error equals error, otherwise returns false
error
bool containsErr(E error) => isErr && _error == error;