closing curly brace for if  - (isset($cPath_array)) { - is missing