• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Function name - checkExistsAPIKEY

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?
 
APIKey key = new APIKey(userID); key.exists()

You didn't tell us the language or the context. An object-oriented approach might make more sense - or less sense.
 
Back
Top