Change exit behaviour so function is always true or fail, never false