Forum:If exists

Is there a way to make a template ifexists? You would put I tried to make but it always results in Text if exists. It's not essential, but it would be nice to have a custom text if a page exists or if it doesn't. For example, I could have it say Foo (please help us by creating this page) if it does not exist or Foo if it doesn't exist. Thanks, Iggyvolz 01:09, February 11, 2012 (UTC)