If she's just pretending, then I think it's fine. It would become an issue if she actually thought there was someone there. Then she would need some sort of help. It may also be an issue if she is getting teased about it among her peers. It could make her an outcast which can cause damaging emotional effects.