fixed namespace check to be psr-0 compliant