Amended check for a matrix like object