Check If Python Class Syntax Python If Function With Boolean