refactoring - remove assert from is_*-functions