amended empty package check