Added a check when Function have the 'async' property