You could also use `not self.marionette.execute_script('return window.navigator.mozTelephony.active;')`