BTW since lock is optional it should be Null<Bool> already, not sure why you need to change it