Thread:Extension talk:ParserFunctions/ ifexist and empty pages

Hi, would it be possible to have a function similar to #ifexist but that also checks that the page is not empty ?

For example, some templates (like fr:Modèle:Wikiprojet for TODO subpages) currently use #ifexist to chech that the page exists before including it and putting decorations around it (rounded frame, explanations, ...). It could be useful to be able to check also that the page is not empty before including it.