Remove redundant is_scalar() in config validation

See: a2deb252a3d4de09d5512cb5af6121468a17a2ae