check if TARGET_PKG is null