Ah, sorry, I misread `($canmod = $extension->canModify()) === true` to be `($canmod = $extension->canModify() === true)`.