check for null instead of instanceof UserInterface
update test
Run totallyGuarded() once outside of loop.

The boolean returned by totallyGuarded() will never change during the loop. Running the method outside of the foreach avoids one unnecessary count() and two checks for each iteration.
simplify condition
Add Collection::groupBy
Use array_get to fetch attribute
Added a method to retrieve random element(s) from the collection's internal array. Work done by @daylerees in pull request #3002 which Taylor requested be sent to the 4.1 branch.
Update FileStore.php

Fixed a couple of minor typos.
Add database prefix to renameColumn

Fixes an issue where renameColumn throws an exception if a database prefix is set.

Signed-off-by: Suhayb El Wardany <me@suw.me>
Merge pull request #3130 from suwardany/renamecols-prefix

Add database prefix to renameColumn
Fix spacing.
Merge pull request #3126 from thefuzzy0ne/patch-1

Update FileStore.php
Adding integer serial types.
Merge pull request #3118 from underparnv/4.1

Collection random() method.
Fix spacing.
Merge pull request #3100 from Youpie/patch-1

Run totallyGuarded() once outside of loop.
Added descending sort option to Collection::sortBy()
Increment version.
Missing use statement for DateTime
Remove unused Filesystem