Shouldn't it be `if(!isset($options['memory']))`?