added exist logic to avatar check