Fixed missing letter h in hasattr (typo)