if you merely want to check that you have at least one iframe, then you can use querySelector and check if this returns anything