A couple of things

- no need to declare variables you only use once
- breaking up ifs
- simplifying loadMulti
actually, strpos is unecessary
explode() will simply return a one item array if there is no comma
a couple of minor things
baic cleanup
since we know this is an array, empty() is quicker
starting cleanup, but holdup...
let's make sure we have an array here
now that we know it'll be an array for sure
we can simplify this up here, too