code style:
```php
if (is_file($baseName)) {
    return $baseName;
}
```