added hw5

проверка на None через is not None