CRM-15140 Recognise that ksort() returns a boolean rather than an array; prevent notice by replacing empty() with isset(); and prevent side-effect by not sorting
Revert isset() back to \!empty()
Merge pull request #187 from kenwest/CRM-15140

CRM-15140 fix metatag module support