Added isSimulator() to the @anzor_b version (sensible place for it)