$exists = ($exists ? true : false);  does exactely ... nothing !

I'm afraid that there is something to redesign here