Fix "Creating default object from empty value"
Fix "Undefined index: encrypt_keys"
Fix "Only variables should be passed by reference"