API: Fix E_NOTICE. !is_null() and isset() are not equivalent when indexing arrays