Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

Drupal\Core\KeyValueStore\KeyValueStoreInterface now provides a has() method, which takes a single key as a parameter, and returns TRUE if the key exists in the collection, and FALSE otherwise.