Replace if null with existence operator

Working with assignment and return values
closes #13
Move `GetSingleStatementFromPossibleBlock` to the extensions class.