Replaced ExternalInterface.available with try … catch