null check of basePath