[sr-dev] testing function result in if-statement