diff: duplicate isinstance test removal

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>