First need to check `isset($_FILES['avatar']['error'])`