courtney had been in a mental hospital most of her life , but she 'd switched places with her sister at the beginning of sixth grade , doing so by pretending to be friends with aria , spencer , emily , and hanna .