When Session->hasIdentifier() is called but no instance of
$className has yet been fetched, a PHP warning about
illegal offset type is triggered. This happens because the
isset() check passes:
$this->identifierMap[$this->getClassIdentifier($className)][$identifier]
But because $this->identifierMap[$this->getClassIdentifier($className)]
in this case is NULL, the reference attempts to access
`null[$identifier]` which is of course not valid.
The problem is prevented by splitting the checked
variable reference into two arguments for isset(),
which in turn returns early if the first of the two
arguments is not set. This prevents the check for
an array key being set on a null value, causing
the PHP warning to no longer be triggered.