corrected 'is' check