removing unnecessary if-block from getMattFromMattEntity()