Prevent edge-case where config file exist but invalid (not a yaml)