cleaning, refactoring, adding missing classes, attr, ..

if null is an error and empty is no results, for me means that the server doesn't handle properly the errors.