Php If Array Has Javascript Documentation Generator