Adds metaprogrammed attribute check.