Remove extra `if`