Simplify argument checking for asserts