cleanup: remove unused if