Simplify the checking of function attributes by using the simple methods.