More efficient package check