small refactoring, remove unneeded 'if' conditional