fix: remove unnecessary if check