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