lunetics/LocaleBundle — pull request #3 by whiterv (2012-03-19 22:21:52+00:00)
Title: is_array($result) should be !empty($result)

!empty($result) because when the user preference list and available list are not overlapping at all (e.g. "en,fr;" and "sp,kr;"), the $result is still going to be an array, although with no elements. empty() will take care of the NULL case as well. This change was unit tested pass.