Fixed conditional to account for different IDs in Illuminate\Database\Eloquent\Collection return