Small changes to has and hasNot leaves