Essentially,

Without a check value: Is the current hub the default hub?
With a check value: Is the hub specified by the check value the default hub?