Remove massive if() in getItem