removing empty stub if(){}

i need to revisit error handling anyhow
cover ignoring of remaining items in loop