Check for .each instead of class type