Switching the size check to work with objects