Fix the checks in is_async_method ().