How to check whether a plane with specific name present in a part or not and if not then create it?

Hi, I want to traverse through the feature tree and check whether the particular plane is already available and if not, pop up a message to user  "Plane is not available. Want to create it?". If yes then create it using offset to reference planes and if No then stop the macro.

Thanks!

SolidworksApi/macros