In dare.h, added a condition to check that submat index was valid.
If not valid, just return false.