set an empty default hash for $configs and check for it using empty()