Simplify attrs check.