I've changed this to a precondition check.