Check 'context' before 'extra'

First check 'context' array, before 'extra' array is checked