avoid index undefined warning by using isset

Change-Id: I676d113470e8e276789b53f599e90a5cb6562034
Merge "avoid index undefined warning by using isset"