Fixed a bit of logic - thanks scrutinizer

Signed-off-by: emanuele <emanuele45@gmail.com>
 Documentation

Signed-off-by: emanuele <emanuele45@gmail.com>