Lambda Function With If Statement