Added check expression function