Fixing check to checking for pear