Using attribute if method does not exist