Fix notices when array key does not exists