[FIX] check if reloadData is not undefined