chcek if TARGET_PKG is null