Return check_config after checking yaml