Issue #1286722 by maximpodorov: Add check for is_array() in addition to isset() check to avoid issued in PHP < 5.4.