added better check

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