Refactor config class 825

Fixes #825 
This code is effectively a duplicate of `_valid_configuration_keys` below; maybe just call that and convert the exception to returning False?