Chromecast global availability method `cast.available`

Fix for Chromecast availability in environments that report casting capability before view is ready. [Fixes #74735688]
this function is already declared elsewhere, lets not recreate it