'Check if both peer and parent are non-null because this channel was created by a ..'

I would always prefer 'because' to 'as' because it's less confusing to a reader.