minor updates
minor updates

I've updated the typesafe checking for the test-environment ... (`live` was already a typesafe check anyway)
I've also updated the elseif stuff to be regular 'if'-statements. I just don't like 'else' :)
printapi/printapi-php