added check condition

Signed-off-by: Steven "NemesisRE" Koeberich <nemesissre@gmail.com>