apparently ldap doesnt always return an array of groups
Compatibility with Laravel 4.1