fix: brought over package check from nibabel