Tiny nitpick: it'd be more idiomatic Ruby to write this like so `!!locked` (minus the implicit `self.` prefix)