Modified 'Exists' method
register prototype