Protect against out-of-bound