implementation of exists method (considering there will be methods that will inspect the name as well)