Fixed php notice about array key does not exists.