Added guard to input object