Wrapping package definition in defined checks