40314cc586
Given we have a function to invalidate, we should also have ones to query the validity. Also makes the code more straightforward to read.