Err typecasting an array to string gives `Array` so my suggestion might not be the best. Though personally I wouldn't don't mind that. 

Do we really need to put these safeguards? I say let PHP deal with the typecasting as it normally would and throw error where it would.