added check to other functions

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