It's unclear from the function name what this does.  Since it's returning boolean let's change it to something like isSomeName or hasSomeName