I would check with the state of Pennsylvania directly to see how they determine residency. In general, a gap year doesn't change your residency. My state for example, considers me a resident as long as my parents still live there, regardless of how old I am or where I live now.