Remove unnecessary check of obj