``phase_unwrap_naive`` is not a part of the public API. It will only be called from ``phase_unwrap``, and that function already takes care of error checking like this. What you suggest is redundant, so I would prefer not adding it.