Thread:Extension talk:ParserFunctions/ ifexist and empty pages/reply

This can already be done using the  magic word. It will give you the page size, and you can use ParserFunctions #ifexpr to set some minimum size threshold before performing some other action. I hope that info helps.