Ran everything past the debugger,

php storm is awsome :D