Replace if null with existence operator

Working with assignment and return values
closes #13
Move `GetSingleStatementFromPossibleBlock` to the extensions class.

<!---
@huboard:{"order":34.5,"milestone_order":89,"custom_state":""}
-->