Fix conditional expression of custom_conditions.

custom_conditions always return array.
Therefore, I fixed conditional expression.