Check for package definition before declaring.