removed method isEmpty cause it was already in the super class