This PR replaces erroneous usage of PHP's empty function on instances of Laravel's Collection class. It also migrates some nearby arrays to collections so that they can use consistent methods. It reorganizes some code and adds comments to clarify intent.
This issue was raised on an unrelated pull request.
This PR replaces erroneous usage of PHP's
empty
function on instances of Laravel'sCollection
class. It also migrates some nearby arrays to collections so that they can use consistent methods. It reorganizes some code and adds comments to clarify intent.This issue was raised on an unrelated pull request.