I'm writing a function and I'm having trouble settling on a name.
The function is a simple one that takes a userID (numeric) as an argument, and checks it against a database to see if an API Key has been assigned to it.
If a key has been assigned, the function returns 'true'. If the userID is invalid or does not have a matching API Key, it returns false.
I've considered
checkExistsAPIKey
checkAPIKeyExists
isDefinedAPIKey
APIKeyIsDefined
APIKeyExists
Thoughts?
The function is a simple one that takes a userID (numeric) as an argument, and checks it against a database to see if an API Key has been assigned to it.
If a key has been assigned, the function returns 'true'. If the userID is invalid or does not have a matching API Key, it returns false.
I've considered
checkExistsAPIKey
checkAPIKeyExists
isDefinedAPIKey
APIKeyIsDefined
APIKeyExists
Thoughts?