There are more possible values of the sim card state. Please also handle them accordingly.

/**
  * Possible values:
  *   null,
  *   'absent',
  *   'unknown',
  *   'pinRequired',
  *   'pukRequired',
  *   'networkLocked',
  *   'corporateLocked',
  *   'serviceProviderLocked',
  *   'ready'.
  */

FYI, 'corporateLocked' and 'serviceProviderLocked' are similar to 'pinRequired'. Both require users input a valid passcode.