Checks whether the
credentialPolicy
of this instance is set.
false if the credentialPolicy is null. Otherwise, it returns true.