Utilize `Illuminate\Support\Arr`.

Signed-off-by: crynobone <crynobone@gmail.com>
Improve consistency.

Signed-off-by: crynobone <crynobone@gmail.com>
Reduce complexity.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge branch '2.2'