def __exists(self, p):
try:<EOL><INDENT>p = self.__pathToTuple(p)<EOL><DEDENT>except TypeError:<EOL><INDENT>pass<EOL><DEDENT>return ((not p[<NUM_LIT:0>] and not p[<NUM_LIT:1>]) or (p[<NUM_LIT:0>] in self.searches and not p[<NUM_LIT:1>]) or (p[<NUM_LIT:0>] in self.searches and<EOL>p[<NUM_LIT:1>] in self.searches[p[<NUM_LIT:0>]]))<EOL>
Check if file of given path exists.

Parameters
----------
p : str or tuple
    Path or tuple identifier.

Returns
-------
exists : bool
    ``True``, if file exists. Otherwise ``False``.