Check that the context is actually an array, and not empty before trying to use it. Fixes #1012.
Check that the context is actually an array, and not empty before trying to use it. Fixes #1012.
mazedigital/jcilearn,alexnantel88/symphony-2,astudio/remixhair,michael-e/symphony-2,allen/auth.getsymphony.com,twiro/symphony-2,bauhouse/sym-todo-list,jensscherbl/symphony,bauhouse/sym-pears,allen/auth.getsymphony.com,thebestsophist/personal-health-diary,mazedigital/jcilearn,symphonycms/sym-getsymphony,jdsimcoe/symphony-boilerplate,thebestsophist/personal-health-diary,alexnantel88/symphony-2,bauhouse/sym-todo-list,jdsimcoe/symphony-boilerplate,roshinebagha/Symphony-Test,twiro/symphony-2,ljonka/symphony-2,DavidForster/symphony-2,DeuxHuitHuit/symphony-2,DavidForster/symphony-2,NikoMostWanted/symphony-2,ayellowraven/projectplaten,DeuxHuitHuit/symphony-2,rzantolas/Symphony-Test,johnpuddephatt/symphony-2,jonmifsud/symphony-2,bauhouse/sym-pears,blaXXabla/projet_test_symphony,jensscherbl/symphony,NikoMostWanted/symphony-2,wastemobile/Symphony2.3.6,johnpuddephatt/symphony-2,jurajkapsz/symphony-2,wastemobile/Symphony2.3.6,astudio/remixhair,bauhouse/Piano-Sonata,avanteweb/symphony-2,BloodBrother/symphony-2,mazedigital/jcilearn,roshinebagha/Symphony-Test,symphonycms/sym-getsymphony,BloodBrother/symphony-2,blaXXabla/projet_test_symphony,jdsimcoe/symphony-boilerplate,symphonycms/symphony-2,rzantolas/Symphony-Test,ayellowraven/projectplaten,symphonycms/symphony-2,jonmifsud/symphony-2,avanteweb/symphony-2,jurajkapsz/symphony-2,ljonka/symphony-2,brendo/symphony-2,jdsimcoe/symphony-boilerplate,bauhouse/Piano-Sonata,michael-e/symphony-2,brendo/symphony-2