Check depth value