Reworking PHPdocs
Recursive function