Checking truthiness of `target` twice here.