Add missing check from previous commit