When you set the ability for the player, it has a set time to work.
When you check if the player still has the ability, if time has run out, then it is returns false.
Otherwise, it deletes the key from the trie so the player no longer has the ability and returns true.
So if you were to check again without resetting the ability on the player, it won't work again.