Simplified a condition to account for non-exported custom assertions.