*/
public function getStatus() {
$status = $this->session->get('encryptionInitialized');
- if (!$status) {
+ if (is_null($status)) {
$status = self::NOT_INITIALIZED;
}
*/
public function getPrivateKey() {
$key = $this->session->get('privateKey');
-
- if (!$key) {
+ if (is_null($key)) {
throw new Exceptions\PrivateKeyMissingException('no private key stored in session');
}
return $key;
*/
public function isPrivateKeySet() {
$key = $this->session->get('privateKey');
- if (!$key) {
+ if (is_null($key)) {
return false;
}