Write the following script to check frame exists of not.
if Bowser("browser name").page("page name").frame("frame name").exits then
reporter.reportevent (micPass),"frame","frame exists"
else
reporter.reportevent (micFail),"frame","frame doesn't exists"
end if