Added variable isset check.

Signed-off-by: ziycon <ziycon.eire@gmail.com>