improved isCoreFile check by moving it to BaseYii