Moved check function into seperate file
Deleted unneeded functions
Lyria.Utils.isObjectOrString -> check; also added try - catch - blocks: Fixes #1