logs: equality check of empty matrices. Comapring with scalars.