is.3D_mask function

Validate a 3d binary mask